import { IFeidaoAiNodejsPage } from '@feidao-factory/atom-nodejs/interfaces';
// import check from '@feidao-factory/atom-nodejs/authorization/check';
// import check_right from '@feidao-factory/atom-nodejs/authorization/check-right';
// import redirect from '@feidao-factory/atom-nodejs/server/redirect';
// import get_current_role_info from "@feidao-factory/atom-nodejs/authorization/get-current-role-info";

// import check_isonline from '@feidao-factory/atom-nodejs/authorization/check-isonline';

export default async function na001(fd: IFeidaoAiNodejsPage, ...args: any[]) {
	/**
	 * check-isonline 判断用户在线状态
	 * check-right 检查用户权限
	 *
	 * get-current-role-info 获取当前角色信息
	 * get-menus 获获取当前用户权限菜单
	 */

	// check 当前登录用户对此页面是否有权限查看
	// const ret_check = await check(fd.data.msg, fd.data.headers, fd.data.spaceid, '3');

	// check-isonline 判断用户在线状态
	// const ret = await check_isonline(fd, './login.html');
	// if (ret && ret === 0) {
	// 	redirect(ret.redirect);
	// }


	// check_right 检查用户权限
	// const ret = await check_right(fd, fd.data.spaceid, '3', './403.html');
	// if (ret && ret === 0) {
	// 	redirect(ret.redirect);
	// }

	// const ret = await get_current_role_info(fd.data.msg, fd.data.headers, fd.data.spaceid, '3');
	// console.log(ret);

}
